BD=`pwd`
DATE=`date +%y%m%d_%H%M%S`
FD=$BD/$DATE/rank

mkdir -p $FD
cd $FD

echo -e "\e[1;42m Log path: \e[0m"$FD
adb root

i=0;while true;do echo "Saving :"$i".txt"; adb shell "echo \" TIME: \"\`date \"+%y%m%d%H%M%S\"\`" >>./$i.txt;    adb shell "procrank -u" >> ./$i.txt;((i++));sleep 10;done
